/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
public class Cuestionario {
	public Cuestionario() {
	}
	
	private java.util.Set this_getSet (int key) {
		if (key == ORMConstants.KEY_CUESTIONARIO_MEDICO) {
			return ORM_medico;
		}
		else if (key == ORMConstants.KEY_CUESTIONARIO_PREGUNTA) {
			return ORM_pregunta;
		}
		
		return null;
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public java.util.Set getSet(int key) {
			return this_getSet(key);
		}
		
	};
	
	private int cod_cuestionario;
	
	private String descripion;
	
	private java.util.Set ORM_medico = new java.util.HashSet();
	
	private java.util.Set ORM_pregunta = new java.util.HashSet();
	
	private void setCod_cuestionario(int value) {
		this.cod_cuestionario = value;
	}
	
	public int getCod_cuestionario() {
		return cod_cuestionario;
	}
	
	public int getORMID() {
		return getCod_cuestionario();
	}
	
	public void setDescripion(String value) {
		this.descripion = value;
	}
	
	public String getDescripion() {
		return descripion;
	}
	
	private void setORM_Medico(java.util.Set value) {
		this.ORM_medico = value;
	}
	
	private java.util.Set getORM_Medico() {
		return ORM_medico;
	}
	
	public final MedicoSetCollection medico = new MedicoSetCollection(this, _ormAdapter, ORMConstants.KEY_CUESTIONARIO_MEDICO, ORMConstants.KEY_MEDICO_CUESTIONARIO, ORMConstants.KEY_MUL_MANY_TO_MANY);
	
	private void setORM_Pregunta(java.util.Set value) {
		this.ORM_pregunta = value;
	}
	
	private java.util.Set getORM_Pregunta() {
		return ORM_pregunta;
	}
	
	public final PreguntaSetCollection pregunta = new PreguntaSetCollection(this, _ormAdapter, ORMConstants.KEY_CUESTIONARIO_PREGUNTA, ORMConstants.KEY_PREGUNTA_CUESTIONARIO, ORMConstants.KEY_MUL_MANY_TO_MANY);
	
	public String toString() {
		return String.valueOf(getCod_cuestionario());
	}
	
}
